<%@page import="org.barman.dao.ItemDAO"%>
<%@page import="org.barman.pojo.Item"%>
<%@page import="java.util.List"%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%
	List<Item> items = new ItemDAO().getAll();
	pageContext.setAttribute("items", items);
%>
<center>
<c:forEach items="${items}" var="item">
	<a href="manage_item.jsp?action=edit&id=${item.id}">${item.name}</a>
	<br />
</c:forEach>
</center>
